Package com.twilio.video.ktx

Types

AudioOptionsBuilder
Link copied to clipboard
typealias AudioOptionsBuilder = AudioOptions.Builder.() -> Unit

Receives a AudioOptions.Builder

ConnectOptionsBuilder
Link copied to clipboard
typealias ConnectOptionsBuilder = ConnectOptions.Builder.() -> Unit

Receives a ConnectOptions.Builder

DataTrackOptionsBuilder
Link copied to clipboard
typealias DataTrackOptionsBuilder = DataTrackOptions.Builder.() -> Unit

Receives a DataTrackOptions.Builder

IceOptionsBuilder
Link copied to clipboard
typealias IceOptionsBuilder = IceOptions.Builder.() -> Unit

Receives a IceOptions.Builder

Video
Link copied to clipboard
object Video
Single access point to static Java methods and fields from Kotlin.
VideoBandwidthProfileOptionsBuilder
Link copied to clipboard
typealias VideoBandwidthProfileOptionsBuilder = VideoBandwidthProfileOptions.Builder.() -> Unit

Receives a VideoBandwidthProfileOptions.Builder

Functions

createAudioOptions
Link copied to clipboard
fun createAudioOptions(init: AudioOptionsBuilder? = null): <ERROR CLASS>
Returns an AudioOptions instance initialized using the init function
createBandwidthProfileOptions
Link copied to clipboard
fun createBandwidthProfileOptions(init: VideoBandwidthProfileOptionsBuilder? = null): BandwidthProfileOptions
Returns a BandwidthProfileOptions instance initialized using the init function
createConnectOptions
Link copied to clipboard
fun createConnectOptions(token: String, connectOptionsBuilder: ConnectOptionsBuilder? = null): <ERROR CLASS>
Builds a new ConnectOptions.
createDataTrackOptions
Link copied to clipboard
fun createDataTrackOptions(builder: DataTrackOptionsBuilder? = null): DataTrackOptions
Returns a DataTrackOptions instance initialized using the init function.
createIceOptions
Link copied to clipboard
fun createIceOptions(builder: IceOptionsBuilder? = null): IceOptions
Returns a IceOptions instance initialized using the init function.
createLocalAudioTrack
Link copied to clipboard
fun createLocalAudioTrack(context: Context, enabled: Boolean, name: String? = null, audioOptionsBuilder: AudioOptionsBuilder? = null): LocalAudioTrack?
Creates an audio track.
createLocalDataTrack
Link copied to clipboard
fun createLocalDataTrack(context: Context, dataTrackOptionsBuilder: DataTrackOptionsBuilder? = null): LocalDataTrack?
Creates a local data track.
createLocalVideoTrack
Link copied to clipboard
fun createLocalVideoTrack(context: Context, enabled: Boolean, videoCapturer: VideoCapturer, videoFormat: VideoFormat? = null, name: String? = null): LocalVideoTrack?
Creates a local video track.
createVideoBandwidthProfileOptions
Link copied to clipboard
fun createVideoBandwidthProfileOptions(init: VideoBandwidthProfileOptionsBuilder? = null): <ERROR CLASS>
Returns a VideoBandwidthProfileOptions instance initialized using the init function

Properties

enabled
Link copied to clipboard
var LocalAudioTrack.enabled: Boolean
Check if the local audio track is enabled.
enabled
Link copied to clipboard
var LocalVideoTrack.enabled: Boolean
Check/set whether this local video track is enabled.